package com.dmooo.yxmmerchant.fragment.contract;

import com.common.mvpbase.BaseView;
import com.common.net.listener.HttpOnNextListener;
import com.dmooo.yxmmerchant.domain.ExpressDetailBean;
import com.dmooo.yxmmerchant.domain.GoodsOrderDetailBean;
import com.dmooo.yxmmerchant.domain.GoodsOrderListBean;
import com.dmooo.yxmmerchant.domain.LogisticsListBean;

import java.io.File;
import java.util.List;

public class GoodsOrderContract {
    public interface GoodsOrderView extends BaseView {
        void showUserOrderList(List<GoodsOrderListBean.Item> items);
        void applyBackMoneySuccess();
        void showLogisticsList(List<LogisticsListBean.Item> items);
        void fillInRefundExpressNumSuccess();
        void showExpressList(List<ExpressDetailBean.Item.Child> items);
        void checkBackMoneySuccess();
        void backMoneySuccess();
        void confirmSuccess(int pos);
        void showOrderDetail(GoodsOrderDetailBean orderDetailBean);
    }

    public interface GoodsOrderMdl {
        void getUserOrderList(String token, int status, int page, HttpOnNextListener listener);
        void getLogisticsList(HttpOnNextListener listener);
        void confirmOrderPay(String token,String order_detail_id,HttpOnNextListener listener);

        void backMoneySuccess(String token, String order_detail_id,File file,HttpOnNextListener listener);

        void getLogisticsDetail(String token, String logistics, String express_number, HttpOnNextListener listener);
        void fillInRefundExpressNum(String token, String logistics, String express_number, String order_detail_id,String logistics_linkman,String logistics_contact, HttpOnNextListener listener);
        void getOrderDetail(String order_id,String order_detail_id,HttpOnNextListener listener);
        void applyBackMoney(String token, String order_detail_id, String drawback_reason, List<File> drawback_img, HttpOnNextListener listener);

        //        token	char(32)	是
//        order_detail_id	int(10)	是
//        check_result	char(1)	是
//        drawback_refuse_reason	varchar(200)	否
        void checkBackMoney(String token, String order_detail_id, String check_result, String drawback_refuse_reason,File file, HttpOnNextListener listener);
    }

    public interface GoodsOrderPtr {
        void getUserOrderList(String token, int status, int page);
        void confirmOrderPay(String token,String order_detail_id,int pos);
        void fillInRefundExpressNum(String token, String logistics, String express_number, String order_detail_id,String logistics_linkman,String logistics_contact);

        void getLogisticsList();
        void getOrderDetail(String order_id,String order_detail_id);
        void getLogisticsDetail(String token, String logistics, String express_number);
        void backMoneySuccess(String token, String order_detail_id,File file);
        void applyBackMoney(String token, String order_detail_id, String drawback_reason, List<File> drawback_img);
        void checkBackMoney(String token, String order_detail_id, String check_result, String drawback_refuse_reason,File file);
    }
}
